package com.testfileupload.uploadimg.design.decorate.example;

import com.testfileupload.uploadimg.design.decorate.SchoolReport;

public class HighScoreDecorator extends Decorator{
    public HighScoreDecorator(SchoolReport sc) {
        super(sc);
    }
    //汇报最高的成绩
    public void reportHighScore(){
        System.out.println("这次考试语文最高 77 数学 67 英语57");
    }
    //看到成绩单前，汇报最高成绩

    @Override
    public void report() {
        this.reportHighScore();
        super.report();
    }
}
